package tool

import java.io.File
import implicits.Implicits._
import tool.Pojo.MyMessage


/**
 * Created by Administrator on 2019/12/19
 */
object FileTool {

  def fileCheck(file: File) = {
    try {
      val lines = file.xlsxLines()
      FileValidTool.valid(lines).toMyMessage
    } catch {
      case e: Exception =>
        MyMessage(false, e.getMessage)
    }

  }

}
